﻿
<%@ Register Assembly="System.Web.Silverlight" Namespace="System.Web.UI.SilverlightControls"
    TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" style="height:100%;">
<head runat="server">
    <title>ModernResearch.org | Study Administrator</title>
<script type="Text/javascript">
// We have to set the focus to the Silverlight control to use the focus system
// programmatically within the Silverlight app as the control doesn't gain the
// focus automatically.
function OnLoaded(sender, args)
{
    // Note: the paremeter has to match the ID of the asp:Silverlight control or object element
    // Note 2: We can't directly call "focus()" here. We have to use a small timeout instead.
    setTimeout("document.getElementById('Xaml1').focus();", 100);
}
</script>    
</head>
<body style="height:100%;margin:0;">
    <form id="form1" runat="server" style="height:100%;">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div  style="height:100%;">
            <asp:Silverlight ID="Xaml1" runat="server" OnPluginLoaded="OnLoaded" Source="~/ClientBin/SLAdmin.xap" MinimumVersion="2.0.30923.0" Width="100%" Height="100%" />
        </div>
    </form>
</body>
</html>